<div class="pageContent">
    <form method="post" action="<?php echo site_url('c=pipeline&m=edit_pipe_do&');?>" class="pageForm" onsubmit="return edit_pipe(this);">
        <div class="pageFormContent" layoutH="58">
            <div class="unit">
                <label>流水线标题：</label>
                <input type="text" size="25" name="pipe_title" value="<?php echo $pipe['pipe_title'] ?>"/>
                <span class="inputInfo">流水线标题</span>
            </div>
            <div class="unit">
                <label>流水线最大长度：</label>
                <input type="text" size="25" name="pipe_max" value="<?php echo $pipe['pipe_max'] ?>"/>
                <span class="inputInfo">流水线最大工作长度</span>
            </div>
        </div>
        <div class="formBar">
            <ul>
                <li>
                    <div class="buttonActive">
                        <div class="buttonContent">
                            <button type="submit">确定</button>
                        </div>
                    </div>
                </li>
                <li>
                    <div class="button">
                        <div class="buttonContent">
                            <button type="reset">重输</button>
                        </div>
                    </div>
                </li>
            </ul>
        </div>
        <input type="hidden" name="pipe_id" value="<?php echo $pipe['pipe_id'] ?>"/>
    </form>
</div>
<script type="text/javascript">
    function edit_pipe(form, navTabId) {
        var $form = $(form);
        if (form[DWZ.pageInfo.pageNum]) form[DWZ.pageInfo.pageNum].value = 1;
        navTab.reload($form.attr('action'), {data: $form.serializeArray(), navTabId: navTabId});
        $.pdialog.closeCurrent();
//        navTab.reload("/pipeline/manage?" + parseInt(10 * Math.random()), "", "pipeline_manage");
        return false;
    }

</script>
